package com.nimitz.event.mapper;

import com.nimitz.event.domain.Event;
import com.nimitz.event.domain.EventResult;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface EventMapper {
    void addEvent(Event event);

    List<EventResult> selectAll(@Param(value = "createTime") LocalDate createTime, @Param(value = "state") String state);

    void updateEvent(Event event);

    Event selectById(Long id);

    void deleteById(Long id);
}
